package ;
import haxe.Timer;
import scuts.profiler.Profiler;
using scuts.Core;
enum Bla {
	Here;
}

private enum BlaPrivate {
	Here;
}


class Main
{
	static function main () 
	{
		for (i in 0...10000) {
			Test.foo();
		}
		
		trace(Profiler.traceStats());
		
	}
	
}

private class Test {
	public static function foo () {
		var l = function (i:Int) {
			[1, 2, 3].mapA(function (i) return i * 3);
			return i+i;
		}
		for (i in 0...10) {
			l(i);
		}
		
		if (true) {
			return 1;
		} else {
			return 2;
		}
	}
	
	public static inline function foo2 (i:Int) {
		if (i > 5) {
			return 1;
		} else {
			return 2;
		}
	}
}
